﻿// -----------------------------------------------------------------------
//  <copyright file="Customer.cs" company="柳柳软件">
//      Copyright (c) 2014-2015 66SOFT. All rights reserved.
//  </copyright>
//  <site>http://www.66soft.net</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2015-12-08 0:46</last-date>
// -----------------------------------------------------------------------

using System;
using System.ComponentModel;

using OSharp.Core.Data;


namespace ZH.JY.Store.Models
{
    /// <summary>
    /// 实体类——客户信息
    /// </summary> 
    [Description("客户信息")]
    public class Customer : EntityBase<int>, ICreatedTime
    {
        /// <summary>
        /// 获取或设置 客户名称
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 获取或设置 手机号
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 获取或设置 客户类型
        /// </summary>
        public CustomerType CustomerType { get; set; }

        /// <summary>
        /// 获取或设置 本次里程
        /// </summary>
        public int NowMilage { get; set; }

        /// <summary>
        /// 获取或设置 下次里程
        /// </summary>
        public int NextMilage { get; set; }

        /// <summary>
        /// 获取设置 信息创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// 获取或设置 机油
        /// </summary>
        public virtual Product Jiyou { get; set; }

        /// <summary>
        /// 获取或设置 机油格
        /// </summary>
        public virtual Product JiyouGe { get; set; }
    }
}